package org.cyb.demo.dao;

import org.apache.ibatis.annotations.Param;
import org.cyb.demo.domain.Major;

import java.util.List;

public interface MajorMapper {
    int returnIdByName(
            @Param("major")Major major
    );

    int insert(
            @Param("major")Major major
    );

    void delete(
            @Param("major")Major major
    );

    void update(
            @Param("major")Major major
    );

    List<Major> selectByName(
            @Param("major")Major major
    );

    List<Major> selectAll();
}
